package com.kathysierra.www;

import java.io.Serializable;

public class NameStore implements Serializable {
    private static final long serialVersionUID = 7839436674126127909L;

    private String firstname;
    private String middleName;
    private String lastName;
    
    public NameStore(String firstName, String middleName, String lastName){
        this.firstname = firstName;
        this.middleName = middleName;
        this.lastName = lastName;
    }
    
    public String makeString(){
        StringBuffer sb = new StringBuffer(40);
        sb.append("First Name: ");
        sb.append(this.firstname);
        sb.append(", Middle Name: ");
        sb.append(this.middleName);
        sb.append(", Last Name: ");
        sb.append(this.lastName);
        return sb.toString();
    }
}
